// ESP01S.h
#ifndef __ESP01S_H__
#define __ESP01S_H__

// STM32
#include "stm32f10x.h"
#include <stdio.h>
#include <stdarg.h>
//#inlcude <stdbool.h>
void ESP01S_Init(void);
void SendByteToESP01(uint8_t Byte);
void SendToESP01S(char* format, ...);
int SendCommandToESP01S(char *buf, char *format, ...);
int SendMessageToESP01S(char Message[]);
uint32_t myhtonl(uint32_t value);
int ESP01SC_connectWIFI(char *buf, char* wifiname, char* wifipassword);
int ESP01SC_connectTCP(char *buf, char* SERVERIP, char* SERVERPORT);
int ESP01SC_disconnectTCP(char *buf);
#endif
